#ifndef __PACKER_H__
#define __PACKER_H__

#include "Types.h"

class Packer
{
public:
    Packer(const byte *key);
public:
    void ecrypt(const byte *data, uint64 dataLength, byte *outData);

    void decrypt(const byte* data, byte *outData);
public:
    static uint64 pad(uint64 dataLength);
    static uint64 ecryptedSize(uint64 dataLength);
    static uint64 decryptedSize(const byte *ecryptedData);
private:
    byte key[8];
};

#endif // __PACKER_H__